import type { MockMethod } from 'vite-plugin-mock'

const addRouers = [
  {
    id: '1928276741244440576',
    menuName: 'Index',
    menuType: 'menu',
    menuTypeDesc: null,
    menuVisible: true,
    menuTitle: '首页',
    menuIcon: 'local-user',
    parentId: '0',
    parentIds: null,
    platform: '1870010524882747593',
    orderNum: 1,
    menuPath: '/index',
    menuComponent: '/home',
    menuKey: null,
    menuStatus: true,
    meta: {
      Intl: 'menu.home',
    },
    children: [],
  },
  {
    id: '1928277022585769984',
    menuName: 'workbench',
    menuType: 'catalog',
    menuTypeDesc: null,
    menuVisible: true,
    menuTitle: 'oa设置',
    menuIcon: 'ant-design:fund-outlined',
    parentId: '0',
    parentIds: null,
    platform: '1870010524882747593',
    orderNum: 1,
    menuPath: '/oa-setting',
    menuComponent: '/Layout',
    menuKey: null,
    menuStatus: true,
    meta: {
      Intl: 'menu.workbench',
    },
    children: [
      {
        id: '1928277555711168512',
        menuName: 'ContractPlatform',
        menuType: 'menu',
        menuTypeDesc: null,
        menuVisible: true,
        menuTitle: '图片设置',
        menuIcon: 'local-user',
        parentId: '1928277022585769984',
        parentIds: null,
        platform: '1870010524882747593',
        orderNum: 1,
        menuPath: '/oa-setting/icon-setting',
        menuComponent: '/OASetting/IconSetting',
        menuKey: null,
        menuStatus: true,
        meta: {
          Intl: 'menu.contractPlatform',
        },
        children: null,
      },
    ],
  },
]
export default [
  {
    url: '/api/menus/list',
    method: 'get',
    timeout: 1 * 2,
    response: () => {
      return {
        status: 0,
        data: addRouers,
      }
    },
  },
] as MockMethod[]
